// src/types/Department.ts
// 通用参数响应
export interface Response {
  success: boolean
  code: string
  message: string
  data: object
}

// 分页查询部门列表
export interface GetDepartmentPagedListAsyncParams {
  departmentName: string
  status: number | ''
}

// 分页查询用户列表响应
export interface GetDepartmentPagedListAsyncResponse {
  code: string
  data: {
    pageIndex: number
    pageSize: number
    totalCount: number
    totalPages: number
    data: unknown[]
    hasPrevious: boolean
    hasNext: boolean
  }
  message: string
  success: boolean
}

// 添加部门参数
export interface AddDepartmentAsyncParams {
  departmentName: string
  departmentDesc: string //可空
}

// 修改部门参数
export interface UpdateDepartmentAsyncParams {
  id: number
  departmentName: string
  departmentDesc: string
  status: number
  parentId: number
  minister: number
}
